$article-heading: #ffffff;

$article-text: #d4d7dd;

@import '@influxdata/clockface/dist/variables.scss';

.WidgetSearch {
  .WidgetHelperText {
    color: $cf-grey-65;
    margin: 0;
  }
  .DocSearch-Modal {
    background-color: transparent !important;
    box-shadow: none;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 auto !important;
  }

  .DocSearch-StartScreen {
    display: none;
  }

  .DocSearch-Footer {
    display: none !important;
  }

  .DocSearch-Label {
    margin-top: 3px;
  }

  .DocSearch-Container {
    background: transparent;
    height: auto !important;
    position: relative !important;
    width: 100% !important;
  }

  .DocSearch-Hit {
    padding-left: 0px !important;
    border-radius: 0px !important;
    margin-left: 6px !important;
    border-left: 2px solid $cf-grey-45;
    margin-bottom: 8px !important;
    &:hover {
      border-left: 2px solid $c-pool !important;
    }
  }

  .DocSearch-Hit-source {
    color: $article-heading;
    background: none;
    font-size: 17px !important;
    margin: 0px !important;
    font-weight: 400;
    margin-bottom: 4px !important;
    position: relative;
  }

  .DocSearch-Hit-title {
    color: $cf-grey-75;
    font-size: 15px;
    font-weight: 400;
  }

  .DocSearch-Hit-path {
    font-weight: bold !important;
    font-size: 13px;
    margin-top: 4px !important;
    color: $cf-grey-45;

    &:hover {
      color: $cf-grey-75;
    }
  }

  .DocSearch-Hit a {
    background: transparent !important;
    box-shadow: none;
    color: $article-text !important;
    padding: 0 !important;
  }

  .DocSearch-Hit-content-wrapper {
    overflow-x: clip;
    white-space: normal;
  }

  .DocSearch-Hit-Container {
    height: 100%;
    padding-top: 4px;
  }

  .DocSearch-Hit-icon {
    display: none;
  }

  .DocSearch-SearchBar {
    padding: 0;
    box-shadow: none;
  }
  .DocSearch-Form {
    display: block;
    width: 100%;
    height: auto;
    margin: auto;
    box-shadow: none;
    outline: none;
    font-family: $cf-text-font;
    border: 2px solid $cf-input-border--default;
    border-radius: 4px;
    background-color: $cf-input-background--default;
    background-image: url();
    background-position: left 17px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding: 0;
    label {
      display: none;
    }

    transition: $cf-input--transition;
    :hover {
      background-color: $cf-input-background--hover;
    }

    :focus {
      background-image: none;
      background-color: $cf-input-background--focused;
    }
  }

  input#docsearch-input {
    padding-left: 45px;
    color: $cf-grey-95;
  }

  .DocSearch-Input {
    width: 100%;
    height: 40px;
  }

  .DocSearch-Input::placeholder {
    font-size: medium;
    color: $cf-input--placeholder-text !important;
  }

  .DocSearch-LoadingIndicator {
    display: none !important;
  }

  .DocSearch-Hit-path {
    font-weight: bold;
  }

  .DocSearch-Reset {
    top: 9px;
    position: absolute;
    right: 10px;
    border: none !important;
  }
  .DocSearch-Reset:hover {
    border: none !important;
  }

  .DocSearch-Dropdown {
    min-height: 7px;
  }
  .DocSearch-Dropdown::-webkit-scrollbar-thumb {
    border: none;
    background: linear-gradient(
      rgb(190, 46, 228) 0%,
      rgb(0, 163, 255) 100%
    ) !important;
  }

  .DocSearch-Dropdown::-webkit-scrollbar {
    width: 6px;
  }

  .DocSearch-Hits mark {
    color: $c-pool !important;
  }
}
